function SrvError(params){ 
	 
}

SrvError.Where = function(type,proxy){
	this.type = type;
	this.proxy=proxy;
	this.linked = null;
	this.set = null;
	if(this.type==0){
		this.set = new SrvError.Where(1,true);
		this.set.linked = this;
	}
	this.getProxy = function(){
		var m = new SrvError.Where(this.type);//当前的对像
		if(this.type==0){
			m.set = new SrvError.Where(1,true);//set对象
			m.set.linked = m;
		}else{
			m.linked=this.linked;
			this.linked.linked=m;
		}
		return m;
	}
	this.data = {};
	this.put = function(key,value){
		this.data[key] = value;
	}
	this.get = function(key){
		return this.data[key];
	}
	
	
	/** 编号 [非空]       **/
	this.seId=function(seId){if(this.proxy)return this.getProxy().seId(seId);  this.put("seId", seId);return this;};
	/** and se_id is null */
	this.seIdNull=function(){if(this.proxy)return this.getProxy().seIdNull();if(this.get("seIdNot")==null)this.put("seIdNot", "");this.put("seId", null);return this;};
	/** not .... */
	this.seIdNot=function(){if(this.proxy)return this.getProxy().seIdNot();this.put("seIdNot", "not");return this;};
	this.seIdNotNull=function(){if(this.proxy)return this.getProxy().seIdNotNull();this.put("seIdNot", "not");this.put("seId", null);return this;};
	this.seIdNot=function(seId){if(this.proxy)return this.getProxy().seIdNot(seId);this.put("seIdNot", "not");this.put("seId", seId);return this;};
		
	/** and se_id <= ? */
	this.seIdMin=function(min){if(this.proxy)return this.getProxy().seIdMin(min);this.put("seIdMin", min);return this;};
	/** and se_id >= ? */
	this.seIdMax=function(max){if(this.proxy)return this.getProxy().seIdMax(max);this.put("seIdMax", max);return this;};
		
		
	this.seIdIn=function(ids){
		if(this.proxy)return this.getProxy().seIdIn(ids);  this.put("seIdIn", ids);return this;
	};	
		 
	
	
	/** 错误标题 [非空]       **/
	this.seTitle=function(seTitle){if(this.proxy)return this.getProxy().seTitle(seTitle);  this.put("seTitle", seTitle);return this;};
	/** and se_title is null */
	this.seTitleNull=function(){if(this.proxy)return this.getProxy().seTitleNull();if(this.get("seTitleNot")==null)this.put("seTitleNot", "");this.put("seTitle", null);return this;};
	/** not .... */
	this.seTitleNot=function(){if(this.proxy)return this.getProxy().seTitleNot();this.put("seTitleNot", "not");return this;};
	this.seTitleNotNull=function(){if(this.proxy)return this.getProxy().seTitleNotNull();this.put("seTitleNot", "not");this.put("seTitle", null);return this;};
	this.seTitleNot=function(seTitle){if(this.proxy)return this.getProxy().seTitleNot(seTitle);this.put("seTitleNot", "not");this.put("seTitle", seTitle);return this;};
		
		 
	
	
	/** 错误内容        **/
	this.seContent=function(seContent){if(this.proxy)return this.getProxy().seContent(seContent);  this.put("seContent", seContent);return this;};
	/** and se_content is null */
	this.seContentNull=function(){if(this.proxy)return this.getProxy().seContentNull();if(this.get("seContentNot")==null)this.put("seContentNot", "");this.put("seContent", null);return this;};
	/** not .... */
	this.seContentNot=function(){if(this.proxy)return this.getProxy().seContentNot();this.put("seContentNot", "not");return this;};
	this.seContentNotNull=function(){if(this.proxy)return this.getProxy().seContentNotNull();this.put("seContentNot", "not");this.put("seContent", null);return this;};
	this.seContentNot=function(seContent){if(this.proxy)return this.getProxy().seContentNot(seContent);this.put("seContentNot", "not");this.put("seContent", seContent);return this;};
		
		 
	
	
	/** 标识        **/
	this.seFlag=function(seFlag){if(this.proxy)return this.getProxy().seFlag(seFlag);  this.put("seFlag", seFlag);return this;};
	/** and se_flag is null */
	this.seFlagNull=function(){if(this.proxy)return this.getProxy().seFlagNull();if(this.get("seFlagNot")==null)this.put("seFlagNot", "");this.put("seFlag", null);return this;};
	/** not .... */
	this.seFlagNot=function(){if(this.proxy)return this.getProxy().seFlagNot();this.put("seFlagNot", "not");return this;};
	this.seFlagNotNull=function(){if(this.proxy)return this.getProxy().seFlagNotNull();this.put("seFlagNot", "not");this.put("seFlag", null);return this;};
	this.seFlagNot=function(seFlag){if(this.proxy)return this.getProxy().seFlagNot(seFlag);this.put("seFlagNot", "not");this.put("seFlag", seFlag);return this;};
		
		 
	
	
	/** 错误次数        **/
	this.seCount=function(seCount){if(this.proxy)return this.getProxy().seCount(seCount);  this.put("seCount", seCount);return this;};
	/** and se_count is null */
	this.seCountNull=function(){if(this.proxy)return this.getProxy().seCountNull();if(this.get("seCountNot")==null)this.put("seCountNot", "");this.put("seCount", null);return this;};
	/** not .... */
	this.seCountNot=function(){if(this.proxy)return this.getProxy().seCountNot();this.put("seCountNot", "not");return this;};
	this.seCountNotNull=function(){if(this.proxy)return this.getProxy().seCountNotNull();this.put("seCountNot", "not");this.put("seCount", null);return this;};
	this.seCountNot=function(seCount){if(this.proxy)return this.getProxy().seCountNot(seCount);this.put("seCountNot", "not");this.put("seCount", seCount);return this;};
		
	/** and se_count <= ? */
	this.seCountMin=function(min){if(this.proxy)return this.getProxy().seCountMin(min);this.put("seCountMin", min);return this;};
	/** and se_count >= ? */
	this.seCountMax=function(max){if(this.proxy)return this.getProxy().seCountMax(max);this.put("seCountMax", max);return this;};
		
		
	this.seCountIn=function(ids){
		if(this.proxy)return this.getProxy().seCountIn(ids);  this.put("seCountIn", ids);return this;
	};	
		 
	
	
	/** 修改时间 [非空]       **/
	this.seUpdateTime=function(seUpdateTime){if(this.proxy)return this.getProxy().seUpdateTime(seUpdateTime);  this.put("seUpdateTime", seUpdateTime);return this;};
	/** and se_update_time is null */
	this.seUpdateTimeNull=function(){if(this.proxy)return this.getProxy().seUpdateTimeNull();if(this.get("seUpdateTimeNot")==null)this.put("seUpdateTimeNot", "");this.put("seUpdateTime", null);return this;};
	/** not .... */
	this.seUpdateTimeNot=function(){if(this.proxy)return this.getProxy().seUpdateTimeNot();this.put("seUpdateTimeNot", "not");return this;};
	this.seUpdateTimeNotNull=function(){if(this.proxy)return this.getProxy().seUpdateTimeNotNull();this.put("seUpdateTimeNot", "not");this.put("seUpdateTime", null);return this;};
	this.seUpdateTimeNot=function(seUpdateTime){if(this.proxy)return this.getProxy().seUpdateTimeNot(seUpdateTime);this.put("seUpdateTimeNot", "not");this.put("seUpdateTime", seUpdateTime);return this;};
		
	/** and se_update_time >= ? */
	this.seUpdateTimeStart=function(start){if(this.proxy)return this.getProxy().seUpdateTimeStart(start);this.put("seUpdateTimeStart", start);return this;};			
	/** and se_update_time <= ? */
	this.seUpdateTimeEnd=function(end){if(this.proxy)return this.getProxy().seUpdateTimeEnd(end);this.put("seUpdateTimeEnd", end);return this;};
		
		 
	
	
	/** 添加时间 [非空]       **/
	this.seAddTime=function(seAddTime){if(this.proxy)return this.getProxy().seAddTime(seAddTime);  this.put("seAddTime", seAddTime);return this;};
	/** and se_add_time is null */
	this.seAddTimeNull=function(){if(this.proxy)return this.getProxy().seAddTimeNull();if(this.get("seAddTimeNot")==null)this.put("seAddTimeNot", "");this.put("seAddTime", null);return this;};
	/** not .... */
	this.seAddTimeNot=function(){if(this.proxy)return this.getProxy().seAddTimeNot();this.put("seAddTimeNot", "not");return this;};
	this.seAddTimeNotNull=function(){if(this.proxy)return this.getProxy().seAddTimeNotNull();this.put("seAddTimeNot", "not");this.put("seAddTime", null);return this;};
	this.seAddTimeNot=function(seAddTime){if(this.proxy)return this.getProxy().seAddTimeNot(seAddTime);this.put("seAddTimeNot", "not");this.put("seAddTime", seAddTime);return this;};
		
	/** and se_add_time >= ? */
	this.seAddTimeStart=function(start){if(this.proxy)return this.getProxy().seAddTimeStart(start);this.put("seAddTimeStart", start);return this;};			
	/** and se_add_time <= ? */
	this.seAddTimeEnd=function(end){if(this.proxy)return this.getProxy().seAddTimeEnd(end);this.put("seAddTimeEnd", end);return this;};
		
		 
	
	
	/** 状态 [非空]   1:正常 0:无效     **/
	this.seStatus=function(seStatus){if(this.proxy)return this.getProxy().seStatus(seStatus);  this.put("seStatus", seStatus);return this;};
	/** and se_status is null */
	this.seStatusNull=function(){if(this.proxy)return this.getProxy().seStatusNull();if(this.get("seStatusNot")==null)this.put("seStatusNot", "");this.put("seStatus", null);return this;};
	/** not .... */
	this.seStatusNot=function(){if(this.proxy)return this.getProxy().seStatusNot();this.put("seStatusNot", "not");return this;};
	this.seStatusNotNull=function(){if(this.proxy)return this.getProxy().seStatusNotNull();this.put("seStatusNot", "not");this.put("seStatus", null);return this;};
	this.seStatusNot=function(seStatus){if(this.proxy)return this.getProxy().seStatusNot(seStatus);this.put("seStatusNot", "not");this.put("seStatus", seStatus);return this;};
		
		
	this.seStatusIn=function(ids){
		if(this.proxy)return this.getProxy().seStatusIn(ids);  this.put("seStatusIn", ids);return this;
	};	
		 
	
	
	
	this.add=function(key,value) {if(proxy)return proxy().add(key,value);this.put(key, value);return this;}
	this.desc=function(sql) {if(proxy)return proxy().desc(sql);this.put("desc", sql);return this;}
	this.asc=function(sql) {if(proxy)return proxy().asc(sql);this.put("asc", sql);return this;}
	this.definex=function(sql) {if(proxy)return proxy().definex(sql);this.put("definex", sql);return this;}
	
	/** 获取所有错误信息 **/
	this.list=function(size){
		this.data.size = size;
		var protocol = ux.ajax("/admin/systematic/error.list.do",this.data);
		if(!protocol)return null;
		if(protocol.data && protocol.data.list)return protocol.data.list;
		return [];
	}
	/** 获取错误信息分页 **/
	this.page=function(page,size){
		this.data.size = size;
		this.data.page = page;
		var protocol = ux.ajax("/admin/systematic/error.list.do",this.data);
		if(!protocol)return null;
		if(protocol.data)return data;
		return {list:[]};
	}
	/** 根据查询条件取错误信息 **/
	this.get=function(){
		this.data.size = 1;
		var protocol = ux.ajax("/admin/systematic/error.list.do",this.data);
		if(!protocol)return null;
		if(protocol.data && protocol.data.list && protocol.data.list.length==1)return protocol.data.list[0]; 
		return null;
	}
}

SrvError.get = function(id){
	var protocol = ux.ajax("/admin/systematic/error.get.do",{id:id});
	if(!protocol)return null;
	if(protocol.data)return protocol.data.srvError;
	return null;
}

SrvError.where = new SrvError.Where(0,true);